SubscribeEvents
call to listen for custom or existing events from any contract. Make sure that the event
string matches the event signature in Solidity and define the contract address that you want to listen to. You can define
additional filters to only receive events from specific wallets or token Ids.
The OnEventReceived
function provides a SubscribeEventsReturn
object that includes
any information such as contract type, transaction hash and more. When you want to retrieve the emitted event values,
use EventDecoded
object at SubscribeEventsReturn > EventLog > EventDecoded
.
OnBalanceUpdateReceived
function provides
a SubscribeBalanceUpdatesReturn
object that includes the current balance of the wallet address you specified.
OnSubscribeReceiptsMessageReceived
function provides
a SubscribeReceiptsReturn
object that includes the current receipt information.